// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

const {ccclass, property, requireComponent} = cc._decorator;

@ccclass
@requireComponent(cc.Label)
export default class PrivacyCN extends cc.Component {

    onLoad () {
        if(cc.sys.languageCode.indexOf('zh') != -1) {
            this.node.on(cc.Node.EventType.TOUCH_END, ()=>{
                cc.sys.openURL("http://snailbaby.club/privacycn.html")
            })
        }
    }
    
}
